#include <stdio.h>
#include "Exportar.h"
#include "prueba.h"

int main(){
	
Object3D o;
Vertex3D *v=new Vertex3D();
v->set_x(1.0);
v->set_y(1.0);
v->set_z(1.0);

Vertex3D *v2=new Vertex3D();
v2->set_x(2.0);
v2->set_y(0.0);
v2->set_z(-1.0);
Vertex3D *v3=new Vertex3D();
v3->set_x(-1.0);
v3->set_y(2.0);
v3->set_z(3.0);

o.add_vertex(v);

o.add_vertex(v2);

o.add_vertex(v3);

Vertex3D *tri[3]={v,v2,v3};
Triangle *t=new Triangle(tri);
o.add_triangle(t);

GLdouble pos[3]={0.0,0.0,5.0};
GLdouble at[3]={0.0,0.0,0.0};
GLdouble up[3]={0.0,1.0,0.0};
Camera *cam=new Camera(pos,at,up);
Scene *scene=new Scene(cam);
scene->add_object(&o);
exporter(scene);
}
